package com.esirong.whatime.model;

import android.database.sqlite.SQLiteDatabase;

import com.esirong.dao.DaoMaster;
import com.esirong.whatime.Application;

/**
 * Created by esirong on 2015-06-07.
 */
public class TaskDaoMasterImp {

    public static String DB_NAME = "DB.db";

    private static TaskDaoMasterImp instance;
    private TaskDaoMasterImp(){

    }
    public static TaskDaoMasterImp getInstance(){
        if(instance == null){
            instance = new TaskDaoMasterImp();
        }
        return instance;
    }
    public boolean init(){
        DaoMaster.DevOpenHelper helper = new DaoMaster.DevOpenHelper(Application.getInstance(), DB_NAME,
                null);
        SQLiteDatabase db = helper.getWritableDatabase();
        DaoMaster daoMaster = new DaoMaster(db);
        daoMaster.newSession();
        return false;
    }

    public void getCurrentTask(){

    }
}
